package com.usian.cars.controller;


import com.usian.cars.service.ICarImagesService;
import com.usian.common.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2025-01-15
 */
@RestController
@RequestMapping("/cars/car-images")
public class CarImagesController {

    @Autowired
    private ICarImagesService carImagesService;

    @Operation(summary = "根据汽车id查询汽车图片")
    @GetMapping("/getCarImagesByCarId/{carId}")
    public Result<String> getCarImagesByCarId(@PathVariable Integer carId){
        return carImagesService.getCarImagesByCarId(carId);
    }
}
